package com.henry.c05.model;

import lombok.Data;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;


@Data
@ToString
public class Klass {
    private List<Student> students;

    public void print() throws Throwable{
        System.out.println("from print() "+this.getStudents());
        //throw new IllegalArgumentException("测试");
    }

    public void print1() throws Throwable{
        System.out.println("from print1() "+this.getStudents());
        //throw new IllegalArgumentException("测试");
    }
}
